$(document).ready(function(){
									photo_size();																		
					   $('.look').click(function(){
														var _this = $(this);
													   var blogId = $(this).attr('rel');
																var old_count = _this.children('span').html();
													   $.post(URL+"&act=userDig",{blogId:blogId},function(text){
																													 if(text == 1){
																															old_count = parseInt(old_count);
																															old_count = old_count + 1;
																													 	_this.children('span').html(old_count);
																															
																														
																															var html = $('#dig'+blogId);
																																html.html(Lang.space_blog_0000);
																																setTimeout("hideDigResult("+blogId+")",1000);
																															
													   															
																													 }else{
																															  var html = $('#dig'+blogId);
																																 html.addClass('cl04');
																																	html.html(text);
																																	setTimeout("hideDigResult("+blogId+")",1000);
																																	return true;
																													 }

																													 });
													   });
});

function hideDigResult(blogId){
										var html = $('#dig'+blogId);
										html.html("");
}

function hasDig(blogId,old_count){
		var html = $('#dig'+blogId);
	 html.removeClass('cl04');

		html.html(old_count);
}


